package cs4295.test2;

import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.util.AttributeSet;
import android.util.DisplayMetrics;
import android.view.Display;
import android.view.WindowManager;
import android.widget.ImageView;

public class ExtendedImageView extends ImageView {
    public ExtendedImageView(Context context) {
		super(context);
	}
    
    public ExtendedImageView(Context context, AttributeSet attrs) {
		super(context, attrs);
	}
    
    public ExtendedImageView(Context context, AttributeSet attrs,
			int defStyle) {
		super(context, attrs, defStyle);
	}

	public void onDraw(Canvas canvas) {
		
        super.onDraw(canvas);
        Paint paint = new Paint();
        DisplayMetrics metrics = this.getResources().getDisplayMetrics();
        paint.setColor(Color.rgb(25,25,112));
        paint.setStrokeWidth(3);
        canvas.drawRect(0, 0, metrics.widthPixels, metrics.heightPixels*1/11, paint);
    }
}
